//
// Created by aruba on 2020/10/21.
//

#ifndef FFMPEGSYNCAPPLICATION_FFMPEG_ADUIO_DECODER_H
#define FFMPEGSYNCAPPLICATION_FFMPEG_ADUIO_DECODER_H

#include "_ffmpeg_decoder.h"

#define  LOG_TAG_FFMPEG_AUDIO_DECODER    "_ffmpeg_audio_decoder"

class FFmpegAudioDecoder : public FFmpegDecoder {
public:
    OpenslHelper helper;

    uint8_t *out;
    int buff_size;
    AVPacket *avPacket;
    AVFrame *picture;
    SwrContext *swrContext;
    int channel_count;
    int out_size;
    
    //开始播放
    void play();

    //释放资源
    void release();

    //停止播放
    void stop();

};


#endif //FFMPEGSYNCAPPLICATION_FFMPEG_ADUIO_DECODER_H
